import Vue from 'vue'
import App from './App.vue'
import router from './router/';


import store from './store/';
import server from './server/';
import Loading from './components/loading';
import { Utils } from './utils';
import { Assapi } from './assapi/';
import { Assutils } from './assutils/';
import MyCompare from './assutils/comparedom';
import PageNav from './assets/js/pagesize';

import { Button, Select, Message, MessageBox } from 'element-ui';

Vue.use(Button);
Vue.use(Select);

Vue.use(Loading);
Vue.use(server);
Vue.config.productionTip = false;


Vue.prototype.$message = Message;
Vue.prototype.$MessageBox = MessageBox;
Vue.prototype.Utils = new Utils();
Vue.prototype.MyCompare = new MyCompare();

let app = new Vue({
  router,
  store,
  render: h => h(App)
});
Vue.prototype.Assapi = new Assapi(app);
Vue.prototype.Assutils = new Assutils(app);
Vue.prototype.PageNav = new PageNav(app);


app.$mount('#app');